<?
$dbhost = 'localhost';
$dbuser = 'root';
$dbpass = '';
$conn = mysql_connect($dbhost, $dbuser, $dbpass);
if(isset($_POST["simpan"]))
{
	
	$komen = $_POST['komentar'];
	$id = $_POST['id'];
	//$detil_pekerjaan = $_POST['keterangan'];
	
	
	$sql = "UPDATE progress_pekerjaan SET KOMENTAR =  '".$komen."' WHERE  `progress_pekerjaan`.`ID_PROGRESS` =".$id."";
	//echo $sql;
mysql_select_db('mpd');
$retval = mysql_query( $sql, $conn );



if(! $retval )
{
  die('Could not enter data: ' . mysql_error());
}else{ header("location:../../view/spm/detailprogress.php?id=".$id."");
}
}


if(isset($_POST["simpankomen"]))
{
	
	$komen = $_POST['komentar'];
	$id = $_POST['id'];
	//$detil_pekerjaan = $_POST['keterangan'];
	
	
	$sql = "UPDATE pekerjaan SET KOMENTAR =  '".$komen."' WHERE  `pekerjaan`.`ID_PEKERJAAN` =".$id."";
	//echo $sql;
mysql_select_db('mpd');
$retval = mysql_query( $sql, $conn );



if(! $retval )
{
  die('Could not enter data: ' . mysql_error());
}else{ header("location:../../view/spm/revdetailpekerjaan.php?id=".$id."");
}
}
?>